package cn.kxm.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.kxm.pojo.InquiryBill;
import cn.kxm.pojo.InquiryBillDetaill;

public interface InquiryBillService  {

	/**
	 * 根据条件查询询价信息
	 * @param code
	 * @param orderTime
	 * @param endTime
	 * @return
	 */
	List<Map<String, Object>> getInquirybill(InquiryBill iBill,Date endTime,
			Integer currentPageNo,Integer pageSize);
	/**
	 * 根据条件查询数量
	 * @param iBill
	 * @param endTime
	 * @param currentPageNo
	 * @param pageSize
	 * @return
	 */
	int getInquirybillCount(InquiryBill iBill,Date endTime);
	/*
     * 查询所有询价信息
     */	
   public  List<InquiryBill> findAllInquirybill(
		   String code,String start,
			String end,String name,
			Integer page,Integer size
		   );
   
   public int getCount(String code,String start,
			String end,String name);
   
    /*
     * 查询单配件所有询价信息
     */	  
 	public List<Map<String, String>> findDetailByBillCode(String code);  	
 	 /*
      *增加询询价单
      *
      *
      */
	  	
      public  int 	  	addInquiry(InquiryBill  i);
      /*
       *增加询询价单明细
       *
       *
       */
      public  int 	addInquiryDtail(InquiryBillDetaill ibd);
     /*
      *
      *通过code找
      *
      */      
 	public InquiryBill findByCode(String code);
   /*
    *
    * modiftyIquiryBill
    *
    */    	  	
  	public int    modiftyIquiryBill(InquiryBill i);
  	public int    modiftyIquiryBillDetal(
  			@Param("partCode")String partCode,
  			@Param("amount")Integer amount,
   			@Param("Double")Double price,
   			@Param("memo") String memo
  			);
  	/*
    *
    *删除询价单明细
    *
    */
   	public int deletinquirybilldetaill(String code);
   	 //删除询价单
     public int deletinquirybill(String code);	    
     //审核
     public  String   shenhe( String code);	
     public  String   chexiaoService(String code);	
     //判断是否删除
     public  String   isdelService(String code);
     //保存判断
     public  String   saveExitService(String code);  
    
}
